local ads__tiancai = fk.CreateSkill({
  name = "ads__tiancai",
  anim_type = "drawcard",
  tags = { Skill.Compulsory },
})

ads__tiancai:addEffect(fk.EventPhaseStart, {
  is_delay_effect = true,
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(self) and target ~= player and target.phase ~= Player.Play
  end,

  on_use = function(self, event, target, player, data)
    local room = player.room
    room:notifySkillInvoked(player, self.name)
    
    room:recover({
      who = player,
      num = 1,
      skillName = self.name
    })
    
    if target:isAlive() and #target:getCardIds("h") > 0 then
      local to_discard = math.min(2, #target:getCardIds("h"))
      room:askToDiscard(target, {
        min_num = to_discard,
        max_num = to_discard,
        skill_name = self.name,
        include_equip = false,
        cancelable = false,
      })
    end
  end,
})



Fk:loadTranslationTable{
  ["$ads__tiancai1"] = "请鞭笞我吧，公瑾！",
  ["$ads__tiancai2"] = "赴汤蹈火，在所不辞！",
  ["ads__tiancai"] = "甜菜",
  [":ads__tiancai"] = "锁定技，非出牌阶段开始时，你回复1点体力，然后当前角色弃置两张牌。",
}



return ads__tiancai
